home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / hardware / cpu115 / cpu.asm < prev    next >
Encoding:
Assembly Source File  |  1995-02-27  |  1.1 KB  |  40 lines

  1. ; ----------------------------------------------------------------------------
  2. ; CPU.ASM  Simple program that demonstates use of the 
  3. ;       Too-Much-In-One-So-Don't-Get-Lost(tm) library
  4. ;
  5. ; Copyright(c) 1992-95 by B-coolWare,  Written by Bobby Z.
  6. ; ----------------------------------------------------------------------------
  7. ;
  8. ; to assemble this:
  9. ;
  10. ; tasm /t/m cpu
  11. ; tlink /t/x cpu
  12. ; del cpu.obj
  13. ;
  14.  
  15.     model    tiny, pascal
  16.     .code
  17.     org    100h
  18.     LOCALS
  19.     JUMPS
  20. Start:
  21.     jmp    Prg_Begin
  22. INCLUDE    UNIDEF.INC        ; macros
  23. INCLUDE    LSTRING.ASH        ; Lstring macro
  24. __WriteStr__    EQU    1    ; compile WriteStr routine
  25. __PRINT_CPU__    EQU    1    ; compile print_CPU routine
  26. __PRINT_FPU__    EQU    1    ; compile print_FPU routine
  27. __PRINT_STEP__    EQU    1    ; compile print_Step routine
  28. INCLUDE    CPU_TYPE.ASH        ; include TMIOSDGL(tm) routines
  29. INCLUDE    DOSINOUT.ASH        ; include DOS input/output routines
  30. Prg_Begin:
  31.     ldx    Cprt
  32.     call    WriteStr
  33.     ldx    CPUIs
  34.     call    WriteStr
  35.     call    print_CPU
  36.     int    20h
  37. Lstring Cprt,<CPU Type Identifier/Asm  Version 1.15   Copyright(c) 1992-95 by B-coolWare.>,CrLf
  38. Lstring CPUis,<  Central Processor: >
  39.     end    Start
  40.